package Var1020;

public class Employee {
    String name;//姓名
    String number;//工号
    String gender;//性别
    String post;//职务
    double salary;//薪水
    String idnumber;//身份证号
    int working;//工作年限

    public Employee() {

    }

    public Employee(String name, String number, String gender, String post, double salary, String idnumber, int working) {
        this.name = name;
        this.number = number;
        this.gender = gender;
        this.post = post;
        this.salary = salary;
        this.idnumber = idnumber;
        this.working = working;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getGender() {
        return gender;
    }

    public String getPost() {
        return post;
    }

    public double getSalary() {
        return salary;
    }

    public String getIdnumber() {
        return idnumber;
    }

    public int getWorking() {
        return working;
    }

    public void showEmployeeInfo() {
        System.out.println(getNumber() + "\t" + getName() + "\t" + getGender() + "\t" + getPost() + "\t" + getIdnumber() + "\t" + getSalary() + "\t" + getWorking());
    }
}
